//
//  STTools_ImageAutoChoseView.h
//  Marriage
//
//  Created by coder on 2018/4/25.
//  Copyright © 2018年 stoneobs@icloud.com. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <stoneobs_browser/STBWBrowserKit.h>
/************自动多选imageview,常用与评价图片，意见反馈******************/
@interface STTools_ImageAutoChoseView : UIView
@property(nonatomic, strong) UIImage                     *addImage;/**< 如果设置了头部图片不再使用默认 */
@property(nonatomic, assign) NSInteger                     maxCount;/**< 最高选择数量 */
@property(nonatomic, assign) BOOL                     cannotEdit;/**< 是否可以删除 */
@property(nonatomic, strong) NSString                     *nameString;/**<  */
@property(nonatomic, strong) NSMutableArray <STBWPhotoModel*>                    *dataSouce;/**< 数据 */
@property(nonatomic, assign) UICollectionViewScrollDirection                     scrollDirection;/**< 修改布局方式 */
@property(nonatomic, strong) UICollectionView                     *collectionView;/**< collectionView */

@property(nonatomic, copy) void(^frameDidChangedHandle)(STTools_ImageAutoChoseView * autochoseView);/**< frame发生变化 */
- (NSArray<STBWPhotoModel*>*)stoneobs_fun_getallImageModels;/**< 所有数组 */
- (NSArray<UIImage*>*)stoneobs_fun_get_allImages;/**< 所有数组图片 */
- (void)stoneobs_fun_stoneobs_fun_addImageModels:(NSArray<STBWPhotoModel*>*)imageModels;/**< 批量增加 */
- (void)stoneobs_fun_addImageModel:(STBWPhotoModel*)imageModel;/**< 单个增加 */

- (void)stoneobs_fun_cancleImageModel:(STBWPhotoModel*)imageModel;/**< 删除 */
- (void)stoneobs_fun_cancleImageModels:(NSArray<STBWPhotoModel*>*)imageModels;/**< 批量删除 */
- (void)stoneobs_fun_removeImageModelFormIndex:(NSInteger)index;/**< 根据下标批量删除0~count */

- (void)stoneobs_action_onSelctedAddButton;
@end
